aboutdialog: Disable text undo
authorMatthias Clasen <mclasen@redhat.com>
Sun, 6 Sep 2020 21:00:43 +0000 (17:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 6 Sep 2020 21:02:00 +0000 (17:02 -0400)
The text buffers here are not editable, so it
does not make sense to have text undo enabled
for them.

Fixes: #3123
gtk/gtkaboutdialog.c

index d7dfd985f7e692398f3f4663377ca7e8c6ddb959..f3304fce2ce37c97263eda796380f68d5089a660 100644 (file)
@@ -2042,6 +2042,8 @@ text_buffer_new (GtkAboutDialog  *about,
   gtk_text_buffer_get_end_iter (buffer, &end_iter);
   gtk_text_buffer_apply_tag (buffer, tag, &start_iter, &end_iter);
 
+  gtk_text_buffer_set_enable_undo (buffer, FALSE);
+
   return buffer;
 }